{% spaceless %}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>shitong - {% block title %}{% endblock %}</title>
<link rel="shortcut icon" href="/images/favicon.png" />
{% block head_link %}{% endblock %}
<link rel="stylesheet" type="text/css" href="/styles/default.css" media="all" />
{% block styles %}{% endblock %}
</head>
<body>
{% block scripts %}{% endblock %}
<div id="container">
    <div id="header">
        <h1><a href="/"><img src="/images/favicon.png" alt="Shitong" />SHITONG</a></h1>
        <ul id="nav">
            <li><a href="/">首页</a></li>
            <li><a href="/users">网友们</a></li>
            {% if not islogin %}            
            <li><a href="/signin">登陆</a></li>
            <li><a href="/signup">注册</a></li>
            {% else %} 
            <li><a href="/user/{{ username }}">我的空间</a></li>
            <li><a href="/settings">设置</a></li>
            <li><a href="/signout">注销</a></li>
            {% endif %}
        </ul>
    </div>
    <div id="main">
    {% block main %}{% endblock %}
    </div>
    <div id="footer">Powered by <a href="http://www.thewolfs.com.cn">Thewolfs Lab</a>.</div>
</div>
</body>
</html>
{% endspaceless %}
